package login;
import com.opensymphony.xwork2.Action;
import com.opensymphony.xwork2.ModelDriven;

import entity.UserVo;


public class LoginAction implements Action,ModelDriven<UserVo> {

	public UserVo user=new UserVo();
	
	public String execute() throws Exception {
		return "SUCESS";
	}

	@Override
	public UserVo getModel() {		
		return user;
	}

	public UserVo getUser() {
		return user;
	}

	public void setUser(UserVo user) {
		this.user = user;
	}
	public String Login(){
		System.out.println(user.getUsername());
		System.out.println(user.getPassword());
		UserDao dao=new UserDao();
		dao.attachDirty(user);
		return SUCCESS;
	}
}


